package com.morontestandroid;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class ScoreActivity extends Activity implements android.view.View.OnClickListener{
 	
Button meny;
FirstLevel fl;
SecondLevel sl;
 
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.score_layout);
        meny = (Button) findViewById(R.id.menyId);
        TextView tv = (TextView) findViewById(R.id.tvSqlinfo);
       // Database info = new Database(this);
       // info.open();
       // String data = info.getData();      
       // info.close(); 
       // tv.setText(data);
        
        meny.setOnClickListener(this);
    }

    @Override
    public void onResume() {
      /*  super.onResume();
    	TextView tv = (TextView) findViewById(R.id.tvSqlinfo);
    	Database info = new Database(this);
        info.open();
        String data = info.getData();
        info.close();
        tv.setText(data);
        */
    }

	@Override
	public void onClick(View v) {
		switch(v.getId()) {
		case R.id.menyId:
			
			startActivity(new Intent(this, MenyActivity.class));
			break;
		}
		
		// TODO Auto-generated method stub
		
	}
}

